package Bean;

import java.sql.ResultSet;
import java.sql.SQLException;

import comm.RowMapper;

public class greeOrderRowMapper  implements RowMapper<greeOrder>{
			public greeOrder mapper(ResultSet rs) throws SQLException {
				greeOrder greeorder=new greeOrder();
				greeorder.setOrderId(rs.getInt("order_id"));
				greeorder.setUseId(rs.getInt("user_id"));
				greeorder.setSum(rs.getInt("sum"));
				greeorder.setDate(rs.getDate("time"));
				greeorder.setOrderState(rs.getString("order_state"));				
				return greeorder;
			}
}
